{% ifnotequal username None%}
<html>
<head>
<title>批量执行命令</title>
{% include "systy.html" %}
</head>
<body>
{% include "head4.html" %}
<div class="cmd_div1">
    <div class="location_div">位置：命令执行 >> 批量执行命令 </div>
    <div class="cmdmore_div0">
        <form action="" method="post">
        <div class="cmdmore_div1">
            <div class="input-group input-group-sm">
                <span class="input-group-addon">匹配方式</span>
                <select name="select" id="select">
                    <option {% ifequal Match "all" %} selected {% endifequal %} value="all">所有主机</option>
                    <option {% ifequal Match "alias" %} selected {% endifequal %} value="alias">主机别名</option>
                    <option {% ifequal Match "group" %} selected {% endifequal %} value="group">主机属组</option>
                </select>                
            </div>
        </div>
        <div class="cmdmore_div2">
            <div class="input-group input-group-sm">
                <span class="input-group-addon">关键字</span>
                <input type="text" name="keyword" class="form-control" value="{{keyword}}" placeholder="输入关键字">
            </div>
        </div>
        <div class="cmdmore_div3">
            <div class="col-lg-6">
                <div class="input-group input-group-sm">
                  <span class="input-group-addon">命令</span>
                  <input type="text"  name="morecmd" id="morecmd" class="form-control" placeholder="输入系统命令">
                  
                </div>
            </div>
        </div>
        <div class="cmdmore_div4">
            <div class="input-group input-group-sm">
                  <span class="input-group-btn">
                  <button class="btn btn-default" type="submit" type="submit">Go!</button>
                  </span>
            </div>
        </div>
        </form>
    </div>
    <div class="cmd_div3">
        <div class="cmd_div3-1">
            {% for i in RDATA %}
                {{ i }}</br>
            {% endfor %}
        </div>
    </div>

</div>
<script type="text/javascript">
$(function(){
	$('#morecmd').focus();
});
</script>
</body>
</html>
{% else %}
你无权访问，请<a href="/login.html">登陆!</a>
{% endifnotequal%}
